package com.ctsi.system.app.rest.request;

import com.ctsi.system.domain.DictionaryTreeType;

import java.io.Serializable;

/**
 * @author: zhangjw
 * @Date: 2018/9/10 10:44
 * @Description:
 */
public class AddTreeTypeRequest implements Serializable {

    private static final long serialVersionUID = -3143736103984265702L;

    private String name;

    private String typeId;

    private String description;

    public AddTreeTypeRequest(){}

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTypeId() {
        return this.typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public DictionaryTreeType toTreeType(){
        DictionaryTreeType treeType = new DictionaryTreeType();
        treeType.setName(this.getName());
        treeType.setTypeId(this.getTypeId());
        treeType.setDescription(this.getDescription());
        return treeType;
    }
}
